package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/** 
 * @author liuxin
 * @create 2023-11-16 15:23:14 
 * @description  店铺注册信息
 */
@Data
@TableName(value ="yx_live_shop")
@ApiModel(value = "店铺注册信息 " , description="yx_live_shop")
public class YxLiveShopEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "live_shop_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long liveShopId;

    @TableField(value="shop_id")
    @ApiModelProperty(value="店铺ID")
    private String shopId;

    @TableField(value="shop_name")
    @ApiModelProperty(value="店铺名称")
    private String shopName;

    @TableField(value="merchant_id")
    @ApiModelProperty(value="商户ID（迎喜APP店铺）")
    private String merchantId;

    @TableField(value="merchant_name")
    @ApiModelProperty(value="商户名称")
    private String merchantName;

    @TableField(value="shop_background")
    @ApiModelProperty(value="店铺背景图")
    private String shopBackground;

    @TableField(value="shop_avatar")
    @ApiModelProperty(value="店铺头像")
    private String shopAvatar;

    @TableField(value="live_code")
    @ApiModelProperty(value="视频号")
    private String liveCode;

    @TableField(value="balance")
    @ApiModelProperty(value="余额")
    private BigDecimal balance;

    @TableField("wedding_candies")
    @ApiModelProperty("喜糖")
    private BigDecimal weddingCandies;

    @TableField(value="live_coin")
    @ApiModelProperty(value="视频币")
    private BigDecimal liveCoin;

    @TableField(value="storage")
    @ApiModelProperty(value="点播空间大小（M）")
    private BigDecimal storage;

    @TableField(value="remain_storage")
    @ApiModelProperty(value="剩余点播空间大小（M）")
    private  BigDecimal remainStorage;


    @TableField(value="user_name")
    @ApiModelProperty(value="联系人名称")
    private String userName;

    @TableField(value="phone")
    @ApiModelProperty(value="联系人电话")
    private String phone;

    @TableField(value="user_id")
    @ApiModelProperty(value="联系人电话")
    private Long userId;

    @TableField(value="sign")
    @ApiModelProperty(value="个性签名")
    private String sign;
    /*
    *店铺状态:0被禁播,1中断,2正常
    */
    @TableField("shop_state")
    @ApiModelProperty(value = "店铺状态:0被禁播,1中断,2正常")
    private Integer shopState;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    
    @TableField(value="update_time")
    @ApiModelProperty(value="更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @TableField(value="channel_id")
    @ApiModelProperty(value="所属渠道ID")
    private Long channelId;

    @TableField(value="channel_name")
    @ApiModelProperty(value="所属渠道名称")
    private String channelName;

    @TableField(value="channel_code")
    @ApiModelProperty(value="所属渠道编码")
    private String channelCode;

    @TableField(value="status")
    @ApiModelProperty(value="审核状态 0：审核中 1：审核通过 2：审核拒绝  3：作废")
    private Integer status;

    @TableField(value="address")
    @ApiModelProperty(value="地址")
    private String address;

    @TableField(value="video_center_permission")
    @ApiModelProperty(value="是否开通视频中心权限 0未开通 1已开通")
    private Integer videoCenterPermission;

}
